﻿using Domain.Interface.Organization;
using Framework.Domain.DomainObject.Bo;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain.Organization.BusinessObjects
{
    [Table("Roles")]
    public class RoleEntity : BaseBoEntity
    {
        public string RoleName { get; set; }
        public string RoleNo { get; set; }
        public int Status { get; set; }
    }

    public class RoleDomain : BaseBo, IRoleDomain
    {
        /// <summary>
        /// 数据实体
        /// </summary>
        private RoleEntity SelfEntity
        {
            get { return this.Entity as RoleEntity; }
            set { this.Entity = value; }
        }

        #region 构造函数
        public RoleDomain(RoleEntity entity)
        {
            SelfEntity = entity;
        }
        #endregion





    }
}
